require File.dirname(__FILE__) + '/../test_helper'

class UserTest < ActiveSupport::TestCase
  def test_user_has_username
    @user = users :jane_doe
    assert_raises ActiveRecord::RecordInvalid do @user.update_attributes!(:username => nil) end
  end
  
  def test_user_has_password
    @user = users :jack_doe
    assert_raises ActiveRecord::RecordInvalid do @user.update_attributes!(:password => nil) end
  end
  
  def test_user_has_email
    @user = users :grace_ann
    assert_raises ActiveRecord::RecordInvalid do @user.update_attributes!(:email => nil) end
  end
end
